package axdoc.model.tags;

import com.alibaba.fastjson.JSON;
import com.util.excel.ExcelResources;

import axdoc.util.Md5;

public class TagsContent {

	private Integer id;
	private String lexiconId;
	private String lexicon;
	private String qaType;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLexiconId() {
		this.lexiconId = Md5.md5(lexicon.trim());
		return lexiconId;
	}

	public void setLexiconId(String lexiconId) {
		this.lexiconId = lexiconId;
	}

	@ExcelResources(title = "a", order = 1)
	public String getLexicon() {
		return lexicon;
	}

	public void setLexicon(String lexicon) {
		this.lexicon = lexicon;
	}

	@ExcelResources(title = "b", order = 2)
	public String getQaType() {
		return qaType;
	}

	public void setQaType(String qaType) {
		this.qaType = qaType;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

}
